﻿function ayncall(u,d,c) {
    $.ajax({
        type: "POST",
        contentType: "application/json;charset=utf-8",   //WebService会返回json类型
        url: u, //调用WebService的地址和方法名称组合
        data: d,  //这里是要传递的参数，格式为data:"{paraName:paraValue}"
        dataType: "json",
        success: c,
        error: function (err) {
            debugger;
        }
    });
}

function aynget(u, d, c) {
    $.ajax({
        type: "GET",
        contentType: "application/json;charset=utf-8",   //WebService会返回json类型
        url: u, //调用WebService的地址和方法名称组合
        data: d,  //这里是要传递的参数，格式为data:"{paraName:paraValue}"
        dataType: "json",
        success: c,
        error: function (err) {
            debugger;
        }
    });
}